negotiator.boaframework
Enum Actions

java.lang.Object
  extended by java.lang.Enum<Actions>
      extended by negotiator.boaframework.Actions
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Actions>

public enum Actions
extends java.lang.Enum<Actions>

Possible actions of an acceptance strategy.

Author:
Mark Hendrikx

Enum Constant Summary
Accept
          Accept the opponent's offer.
Break
          Walk away from the negotiation.
Reject
          Reject the opponent's offer.
 
Method Summary
static Actions valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Actions[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Accept

public static final Actions Accept
Accept the opponent's offer.


Reject

public static final Actions Reject
Reject the opponent's offer.


Break

public static final Actions Break
Walk away from the negotiation.

Method Detail

values

public static Actions[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Actions c : Actions.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Actions valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null